Integrating Natural Semantics and Attribute Grammars: the Minotaur System

نویسندگان

  • Isabelle Attali
  • Didier Parigot
چکیده

This paper describes the principles and the functionalities of the Minotaur system. Minotaur is a generic interactive environment based on the integration of the Centaur system and the FNC-2 system, two systems widely used to specify syntax and semantics of programming languages and generate eecient semantic tools from these speciications. We show how Attribute Grammars techniques can be adequate for evaluation of a quite large subclass of Natural Semantics speciications, including speciications of an arithmetic calculator, a tree transformation, a type-checker for an Algol-like language, ... For this subclass of Natural Semantics speciications, the Minotaur system automatically generates an incremental and eecient (in time and memory) evaluator which gives to Natural Semantics an industrial strength implementation. S emantique Naturelle + Grammaires Attribu ees = le syst eme Minotaur R esum e : Ce rapport d ecrit les principes et les fonctionnalit es du syst eme Minotaur. Minotaur est un environnement g en erique interactif fond e sur l'int egration des syst emes Centaur et FNC-2, deux syst emes largement utilis es pour la sp eciication des langages de programmation (syntaxe et s emantique) et la g en eration, a partir de ces sp eciications, d'outils s emantiques puissants. Nous montrons comment les techniques issues des Grammaires Attribu ees sont applicables a l' evaluation d'une classe large de sp eciications en S emantique Naturelle, incluant par exemple une calculatrice, une transformation d'arbre, un v eriicateur de typage pour un langage de type Algol, ... Pour cette classe de sp eciications en S emantique Naturelle, le syst eme Minotaur g en ere automatiquement un evaluateur incr emental et performant (en temps et en m emoire), ce qui conf ere a la S emantique Naturelle un sch ema d'ex ecution adapt e aux applications de taille r eelle.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

July 2000 Third Workshop on Attribute Grammars and Their Applications Waga2000 Attribute Grammars as Record Calculus a Structure-oriented Denotational Semantics of Attribute Grammars by Using Cardelli's Record Calculus

In this paper, we present a new denotational semantics of attribute grammars (AGs) by using Cardelli's record calculus. This new denotational semantics is simple, natural and structure-oriented. AGs have been considered useful in describing interactive programming environments as well as in specifying the semantics of programming languages. Using AGs, interactive programming environments are of...

متن کامل

Attributed Translation and the Semantics of Natural Language

When Knuth introduced attribute grammars, he observed that although \oriented primarily towards programming languages, the same methods appear to be relevant also in the study of natural languages". We demonstrate that his intuition is computationally justiiable, based on the algebraic equivalence of attribute grammars and Montague's theory of Universal Grammar. We discuss the relationship betw...

متن کامل

Analyzing Direct Non-local Dependencies in Attribute Grammars

Describing the static semantics of programming languages with attribute grammars is eased when the formalism allows direct dependencies to be induced between rules for nodes arbitrarily far away in the tree. Such direct non-local dependencies cannot be analyzed using classical methods, which enable eecient evaluation. This paper presents a new technique for analyzing such dependencies. Attribut...

متن کامل

A Database Interface Based on Montague's Approach to the Interpretation of Natural Language

In this paper we describe a database interface that is loosely based upon some of the concepts proposed by Richard Montague in his approach to the interpretation of natural language. The system is implemented as an executable attribute grammar specified in a higher order, lazy, pure functional programming language. The attribute grammar formalism provides a simple means of implementing Montague...

متن کامل

The Template and Multiple Inheritance Approach into Attribute Grammars

Formal methods for describing programming language semantics, such as attribute grammars, operational semantics and denotational semantics, are not widely used since they are not modular, extensible and reusable. In the paper a new modular, extensible and reusable approach for specifying programming languages with attribute grammars is presented. The concepts from object-oriented programming, i...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1994